package com.healthcare.client.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.healthcare.client.pojo.Adminoffice;
import com.healthcare.client.mapper.AdminofficeMapper;
import com.healthcare.client.service.AdminofficeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 科室字典表 服务实现类
 * </p>
 *
 * @author 新华医院转诊联盟
 * @since 2020-04-13
 */
@Service
public class AdminofficeServiceImpl extends ServiceImpl<AdminofficeMapper, Adminoffice> implements AdminofficeService {

    /**
     * 得到会诊科室
     * HW
     *
     * @return
     */
    @Override
    public List<Adminoffice> findAdminofficeAll() {
        QueryWrapper<Adminoffice> adminofficeQueryWrapper = new QueryWrapper<>();
        adminofficeQueryWrapper.eq("is_groupoffice",0);
        return baseMapper.selectList(adminofficeQueryWrapper);
    }
}
